home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Pascal / Applications / P4⁄Mac 1.0 / P4⁄Mac info next >
Encoding:
Text File  |  1994-08-21  |  3.3 KB  |  70 lines  |  [TEXT/R*ch]

  1. ********************************************************************
  2. *                                                                  *
  3. *                              P4/Mac                              *
  4. *                                                                  *
  5. *         Public Domain (plain) Pascal for the Macintosh           *
  6. *                                                                  *
  7. *    original program by by Steven Pemberton and Martin Daniels    *
  8. *              Mac adaption by Ingemar Ragnemalm 1994              *
  9. *                                                                  *
  10. ********************************************************************
  11.  
  12. This is a Mac port of P4, public domain Pascal compiler and interpreter.
  13. It was compiled with Think Pascal.
  14.  
  15. WHO NEEDS IT?
  16. =============
  17.  
  18. Not a Mac application programmer, that's for sure. No, P4/Mac could be of interest
  19. for people in beginner programmer courses. Such courses (sadly) often teach "Vanilla
  20. Pascal", the nearly useless minimalist Pascal that P4/Mac implements. For those of
  21. you who do, P4/Mac is a Public Domain alternative to buying a commercial compiler.
  22. That is, if you don't need all the extensions and libraries anyway.
  23.  
  24. However, once you want to make real Mac applications, I wholeheartedly recommend
  25. Think Pascal. Powerful language, fast resulting code, great debugger. Metrowerks
  26. CodeWarrior can also be an option, once they get their debugger a bit less buggy.
  27. (Yes, you might move to C or C++ later, but Pascal is the easiest language to
  28. start with.)
  29.  
  30. FEATURES:
  31. =========
  32.  
  33. You get what you pay for. This is a one evening port of a rather simple Pascal
  34. system. Even though it now runs on a Mac, note that the result:
  35.  
  36. • is an INTERPRETER! Don't expect high performance. If you want code that executes
  37. fast, use Think Pascal instead (or any other compiler, like CodeWarrior and
  38. MPW compilers etc).
  39.  
  40. • has NO interface to the Mac toolbox, not even rudimentary drawing calls, so
  41. all you get is Vanilla Pascal, text-based. NOTHING MORE (until someone dives
  42. into the code and adds it, of course). Yes, sure it would be nice with some
  43. turtle graphics, and libraries, and some way to call toolbox routines…
  44.  
  45. HOW TO USE IT:
  46. ==============
  47.  
  48. 1) Write your Vanilla Pascal in a text editor. (TeachText, BBedit, whatever that
  49. produces plain text files.) Save to disk.
  50. 2) Drag-and-drop it to Pcom/Mac (or double-click Pcom/Mac, and it will prompt for
  51. the file). This produces new file, containing the high-level code, the pcode (right?).
  52. 3) Drag-and-drop the pcode into Pint/Mac to run it (or double-click Pint/Mac, and
  53. it will prompt for the file).
  54.  
  55. WHAT COULD BE IMPROVED?
  56. =======================
  57.  
  58. Full Think Pascal sources are supplied. These sources are very close to the original
  59. P4 sources. Feel free to change them for whatever need. Some improvements I have in
  60. mind include:
  61. • Integrating Pcom and Pint, so we can run directly from the Pascal source. Who wants
  62. the intermediary code anyway?
  63. • Breaking down the file block.p to smaller parts, so we can turn debug on for it.
  64. • Adding features, making it able to do something more than just plain text.
  65. • Compiling is made really slow due to the slowness of the write function. Should
  66. we have some way to supress it?
  67.  
  68.  
  69. See "Original source & doc" for more info on the original P4.
  70.